package org.springblade.modules.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;

/**
    * 电梯故障状态明细表
    */
@Data
@EqualsAndHashCode(callSuper=true)
@TableName(value = "blade_elevator_plan_status")
public class ElevatorPlanStatus extends TenantEntity {
    /**
     * 电梯ID
     */
    @TableField(value = "elevator_id")
    private Long elevatorId;

    /**
     * 任务ID
     */
    @TableField(value = "plan_id")
    private Long planId;

    /**
     * 任务状态0：正常运行 1：保养停梯 2：维修停梯 3：困人停梯，4：故障停梯
     */
    @TableField(value = "plan_status")
    private Integer planStatus;

    /**
     * 故障次数 初始化为0
     */
    @TableField(value = "counts")
    private Integer counts;

    /**
     * 健康分数 初始化为100
     */
    @TableField(value = "health_score")
    private Integer healthScore;
}